package Thread_Group;

public class Thread_GroupDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ThreadGroup g=new ThreadGroup("线程组1");
		Thread t1=new Thread(g, new MyRunnable(), "线程组中的第一个线程");
		Thread t2=new Thread(g, new MyRunnable(), "线程组中的第二个线程");
		t1.start();
		t2.start();
		

	}

}
class MyRunnable implements Runnable{
	public void run() {
		
	}
}